<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>

<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<jsp:include page="/core/tool/resources.jsp"></jsp:include>
	<script src="./div.js"></script>
	<script src="../../smdc/security/secselect.js"></script>

</head>

<body>

	<div id="update_dialog" class="easyui-dialog" title="My Dialog" style="width:500px;height:300px;"   
	        data-options="iconCls:'icon-save',resizable:true,modal:true, closed:true, 
	        toolbar:[{text:'Update',iconCls:'icon-reload',handler:click_update,plain:false},
	        	{text:'UpdateAll',iconCls:'icon-reload',handler:click_update_all,plain:false}]
	        ">   
	 	 <form id="update_param" style="margin:5px">
			编码: <input id="secId" name="secId">
			日期: <input class="easyui-datebox" name="beginDate"/>
		</form>
	</div>

	<div id="toolbar" style="margin-bottom:5px">
		<a class="easyui-linkbutton" iconCls="icon-reload" onclick="click_open_update()">Update</a>
		<a class="easyui-linkbutton" iconCls="icon-add" onclick="click_open_upload()">上传</a>
		<!-- <a class="easyui-linkbutton" iconCls="icon-remove" onclick="click_delete()">删除</a> -->
		<br/>
		<form id="search_param">
			代码: <input id="search_secId" name="secId"/>
			开始日期: <input class="easyui-datebox" name="beginDate"/>
			结束日期: <input class="easyui-datebox" name="endDate"/>
			<a class="easyui-linkbutton" iconCls="icon-search" onclick="click_search()">Search</a>

		</form>
	</div>

	<table id="dg"
		data-options="toolbar:'#toolbar', singleSelect:true, collapsible:true, rownumbers:true, fit:true,
				 	multiSort:true, sortOrder:'asc,desc', sortName:'secId,divDate', pagination:true, pageSize:20
			">
		<thead>
			<tr>
				<th data-options="field:'secId',width:70,sortable:true">代码</th>
				<th data-options="field:'secName',width:70">名称</th>
				<th data-options="field:'divDate', width:100, editor:'datetimebox', sortable:true">分红日期</th>
				<th data-options="field:'publishDate', width:100, editor:'datetimebox', sortable:true">发布日期</th>
				<th data-options="field:'earningDate', width:100, editor:'datetimebox'">分红财年</th>
				<th data-options="field:'earningDivDate', width:100, editor:'datetimebox'">分红影响时间</th>
				
				<th data-options="field:'perShareDiv', width:70, align:'right', editor:{type:'numberbox',options:{precision:2}}">红股</th>
				<th data-options="field:'perShareTrans', width:70, align:'right', editor:{type:'numberbox',options:{precision:2}}">送股</th>
				<th data-options="field:'perCashDiv', width:70, align:'right', editor:{type:'numberbox',options:{precision:3}}">现金分红</th>
				<th data-options="field:'additionalIssue', width:70, align:'right', editor:{type:'numberbox',options:{precision:2}}">增发</th>
				
<!-- 				<th data-options="field:'sharesBfDiv', width:100, align:'right', editor:'numberbox'">分红前总股本</th>
				<th data-options="field:'sharesAfDiv', width:100, align:'right', editor:'numberbox'">分红后总股本</th> -->
				
				<th data-options="field:'shareFactor', width:70, align:'right', editor:{type:'numberbox',options:{precision:2}}">简单复权</th>
				<th data-options="field:'adjFactor', width:70, align:'right', editor:{type:'numberbox',options:{precision:2}}">累计复权</th>
				<th data-options="field:'shareFactorBf', width:70, align:'right', editor:{type:'numberbox',options:{precision:2}}">前简单复权</th>
				<th data-options="field:'adjFactorBf', width:70, align:'right', editor:{type:'numberbox',options:{precision:2}}">前累计复权</th>
			</tr>
		</thead>
	</table>

	<div id="dlg" class="easyui-dialog" style="padding:10px 30px 20px 30px"
    	data-options="title:'分红管理',modal:true,toolbar:'#dlg-toolbar',resizable:true, width:550, height:350">
			<form id="ff" method="post" ajax="true" class="easyui-flexform" data-options="cellMargin:3, labelAlign:'right'">
				<input name="billId" type="hidden"/>
				<input name="acountId" type="hidden"/>
				<div>
					<label>代码:</label>
					<div><input class="easyui-textbox" name="secId" data-options="readonly:true"/></div>
				</div>
				<div>
					<label>名称:</label>
					<div><input class="easyui-textbox" name="secName" data-options="readonly:true"/></div>
				</div>
				<div>
					<label>分红日期:</label>
					<div><input class="easyui-datebox" name="divDate" data-options="readonly:true"/></div>
				</div>
				<div>
					<label>发布日期:</label>
					<div><input class="easyui-datebox" name="publishDate" data-options=""/></div>
				</div>
				<div>
					<label>分红财年:</label>
					<div><input class="easyui-datebox" name="earningDate" data-options=""/></div>
				</div>
				<div>
					<label>分红影响:</label>
					<div><input class="easyui-datebox" name="earningDivDate" data-options=""/></div>
				</div>
				<div>
					<label>红股:</label>
					<div><input class="easyui-numberbox" name="perShareDiv" data-options="precision:2"/></div>
				</div>
				<div>
					<label>送股:</label>
					<div><input class="easyui-numberbox" name="perShareTrans" data-options="precision:2"/></div>
				</div>
				<div>
					<label>现金分红:</label>
					<div><input class="easyui-numberbox" name="perCashDiv"  data-options="precision:3"/></div>
				</div>
				<div>
					<label>增发:</label>
					<div><input class="easyui-numberbox" name="additionalIssue" data-options="precision:2"/></div>
				</div>	
				<div>
					<label>简单复权:</label>
					<div><input class="easyui-numberbox" name="shareFactor" data-options="precision:2"/></div>
				</div>
				<div>
					<label>累计复权:</label>
					<div><input class="easyui-numberbox" name="adjFactor" data-options="precision:2"/></div>
				</div>
			</form>
	</div>

	<div id="dlg-toolbar">
	   <a class="easyui-linkbutton" iconCls='icon-save' onclick="dlg_click_save()">保存</a>
       <a class="easyui-linkbutton" iconCls="icon-remove" onclick="dlg_click_delete()">删除</a>
       <a class="easyui-linkbutton" iconCls="icon-undo" onclick="dlg_click_cancle()">取消</a>
	</div>

</body>
</html>
